#include <stdio.h>

int main(void)
{
	int year, month, day;
	int sum = 0; // 累加总天数,变量如果没有初始值，值是随机值。所谓的累加就是在这个变量原有值的基础上做加法

	// year.month.day是year年第几天
	scanf("%d%d%d", &year, &month, &day);

	// 1~month-1总天数 + day
	switch (month - 1) {
		case 11:
			sum += 30;
		case 10:
			sum += 31;
		case 9:
			sum += 30;
		case 8:
			sum += 31;
		case 7:
			sum += 31;
		case 6:
			sum += 30;
		case 5:
			sum += 31;
		case 4:
			sum += 30;
		case 3:
			sum += 31;
		case 2:
			sum += ((year % 4 == 0 && year % 100 != 0 || year % 400 == 0) ? 29 : 28);
		case 1:
			sum += 31;
		default:
			break;
	}

	// 1990.3.5 (1990.1~1990.2 + 5)	
	sum += day;
	printf("%d/%d/%d是这一年的第%d天\n", year, month, day, sum);

	return 0;
}

